using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using BB.Processes.Models.Mapping;

namespace BB.Processes.Models
{
    public partial class ApostasBalasContext : DbContext
    {
        static ApostasBalasContext()
        {
            Database.SetInitializer<ApostasBalasContext>(null);
        }

        public ApostasBalasContext()
            : base("Name=ApostasBalasDbContext")
        {
        }

        public DbSet<Aposta> Apostas { get; set; }
        public DbSet<Classificacao> Classificacaos { get; set; }
        public DbSet<Competicao> Competicaos { get; set; }
        public DbSet<Jogo> Jogoes { get; set; }
        public DbSet<Jornada> Jornadas { get; set; }
        public DbSet<Log> Logs { get; set; }
        public DbSet<Noticia> Noticias { get; set; }
        public DbSet<Registo> Registoes { get; set; }
        public DbSet<Reporte> Reportes { get; set; }
        public DbSet<UserProfile> UserProfiles { get; set; }
        public DbSet<webpages_Membership> webpages_Membership { get; set; }
        public DbSet<webpages_OAuthMembership> webpages_OAuthMembership { get; set; }
        public DbSet<webpages_Roles> webpages_Roles { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new ApostaMap());
            modelBuilder.Configurations.Add(new ClassificacaoMap());
            modelBuilder.Configurations.Add(new CompeticaoMap());
            modelBuilder.Configurations.Add(new JogoMap());
            modelBuilder.Configurations.Add(new JornadaMap());
            modelBuilder.Configurations.Add(new LogMap());
            modelBuilder.Configurations.Add(new NoticiaMap());
            modelBuilder.Configurations.Add(new RegistoMap());
            modelBuilder.Configurations.Add(new ReporteMap());
            modelBuilder.Configurations.Add(new UserProfileMap());
            modelBuilder.Configurations.Add(new webpages_MembershipMap());
            modelBuilder.Configurations.Add(new webpages_OAuthMembershipMap());
            modelBuilder.Configurations.Add(new webpages_RolesMap());
        }
    }
}
